<?php $this->load->view('Admin/navbar');?>
  <!-- Tab panes -->
  <div class="tab-content" style="margin-top: 10px;">
    <div role="tabpanel" class="tab-pane" id="<?=$focusTag?>">
    <div class="panel panel-default">
		  <!-- Default panel contents -->
		  <div class="panel-heading">BTL巡展订单检查</div>
		  <div class="panel-body">
		    <p>
			    请确保文件格式为csv格式并确保第一列为订单号，程序依据订单号就行检查。
		    </p>
				  <div class="col-sm-10 col-md-offset-2">
				  	<form class="form-horizontal" name="add" id="add" action="<?php echo $this->input->server('REQUEST_URI'); ?>" method="post" enctype="multipart/form-data">
				  		<div class="form-group">
						    <label for="year" class="col-sm-2 control-label">年份：</label>
						    <div class="col-sm-4">
						    	<select required class="form-control" id="year" name="year">
							      <option value="">请选择</option>
								</select>
						    </div>
						 </div>
						 <div class="form-group">
						    <label for="month" class="col-sm-2 control-label">时段：</label>
						    <div class="col-sm-4">
						    	<select required class="form-control" id="timeUnit" name="timeUnit">
							      <option value="">请选择</option>
								</select>
						    </div>
						 </div>
						 <div class="form-group">
						    <label for="inputFile" class="col-sm-2 control-label">选择文件：</label>
						    <div class="col-sm-4">
						    	<input type="file" class="form-control" id="inputFile" name="inputFile">
						    </div>
						 </div>
						 <div class="form-group">
						    <label for="inputFile" class="col-sm-2 control-label">模板下载：</label>
						    <div class="col-sm-4">
						    	<a class="btn btn-default" href="public/template/xunSiteOrder.zip" role="button">下载</a>
						    </div>
						 </div>
						 <div class="form-group text-center">
						 	<button type="submit" class="btn btn-default btn-primary">开始分析</button>
						</div>
				  	</form>
				  </div>
				</div>
		  </div>
    </div>
</div>
<script type="text/javascript">
$(function(){
	loadYearList('year',<?=$where['year'] ? $where['year'] : 0?>);
	loadTimeUnitList('timeUnit',<?=$year ? $year : 0?>,<?=$timeUnit ? $timeUnit : 0?>);
});
</script>
<?php $this->load->view('Admin/foot');?>